# -*- coding: utf-8 -*-
#
# File: Divulgacao.py
#
# Copyright (c) 2008 by TcheZope.org
# Generator: ArchGenXML Version 2.0-beta9
#            http://plone.org/products/archgenxml
#
# GNU General Public License (GPL)
#

__author__ = """Fabiano Weimar dos Santos <xiru@xiru.org>, Jean Rodrigo Ferri
<jeanrodrigoferri@yahoogroups.com>, Rafahela Bazzanella
<rafabazzanella@yahoo.com.br>"""
__docformat__ = 'plaintext'

from AccessControl import ClassSecurityInfo
from Products.Archetypes.atapi import *
from zope.interface import implements
import interfaces

from Products.CMFDynamicViewFTI.browserdefault import BrowserDefaultMixin

from Products.PloneZopista.config import *

##code-section module-header #fill in your manual code here
##/code-section module-header

schema = Schema((

    StringField(
        name='id',
        widget=IdWidget
    ,
    ),
    TextField(
        name='description',
        widget=TextField._properties['widget'](
            label="Descricao",
            description="Informe uma breve descricao sobre a divulgacao.",
            label_msgid='PloneZopista_label_description',
            description_msgid='PloneZopista_help_description',
            i18n_domain='PloneZopista',
        ),
        required=1,
        accessor="Description",
        searchable=1,
    ),
    TextField(
        name='texto',
        allowable_content_types=('text/plain', 'text/structured', 'text/html', 'application/msword',),
        widget=RichWidget(
            description="Descreva o corpo do texto sobre sua divulgacao Python/Zope/Plone e afins.",
            label='Texto',
            label_msgid='PloneZopista_label_texto',
            description_msgid='PloneZopista_help_texto',
            i18n_domain='PloneZopista',
        ),
        required=1,
        default_content_type="text/html",
        searchable=1,
        default_output_type='text/html',
        primary=1,
    ),
),
)

##code-section after-local-schema #fill in your manual code here
##/code-section after-local-schema

Divulgacao_schema = schema.copy()

##code-section after-schema #fill in your manual code here
##/code-section after-schema

class Divulgacao(BrowserDefaultMixin):
    """
    """
    security = ClassSecurityInfo()
    implements(interfaces.IDivulgacao)

    _at_rename_after_creation = True

    schema = Divulgacao_schema

    ##code-section class-header #fill in your manual code here
    ##/code-section class-header

    # Methods

# end of class Divulgacao

##code-section module-footer #fill in your manual code here
##/code-section module-footer



